package com.jiedeng.controller;

import com.jiedeng.dao.IProjectStageRepository;
import com.jiedeng.model.ProjectStage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 项目阶段
 *
 * @author zhouyb
 * Created by Administrator on 2018/4/9.
 */
@RestController
@RequestMapping("/projectStage")
public class ProjectStageController {

    @Autowired
    IProjectStageRepository projectStageRepository;

    /**
     * 查询所有数据
     *
     * @return 返回所有数据
     */
    @RequestMapping(value = "/all", method = RequestMethod.GET)
    public List<ProjectStage> findAllProject(){
        return projectStageRepository.findAll();
    }
}
